package thread;

public class MyThread3 implements Runnable {
    private Task task1;
    public MyThread3(Task task){
        task1=task;
    }

    @Override
    public void run() {
        try {
            task1.methodC();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
